package com.mymarkdown.app.util;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

/**
 * @author zenglun
 * @date 2021/12/6 12:59 上午
 * @description: TODO
 */
public class LocksUtil {
    private static final ReentrantLock readUserLatelyOperationLock = new ReentrantLock();

    private static final Condition readUserLatelyOperationCondition = readUserLatelyOperationLock.newCondition();

    public static Condition getReadUserLatelyOperationCondition() {
        return readUserLatelyOperationCondition;
    }

    public static ReentrantLock getReadUserLatelyOperationLock() {
        return readUserLatelyOperationLock;
    }
}
